<?php 
    
    session_start();
    if(!$_SESSION['Eingeloggt']){
    header("Location: index.php");
    }
    
    header("Content-Type: text/html; charset=utf-8");  

    
    switch ($_POST["select_site"]) {
        
    case "Home":
        echo    '<ul class="nav nav-pills nav-stacked">'
                    . '<li role="presentation">'
                        . '<a onclick="getContent(\'Adressen\')" href="#">Adressen</a></li>'
                    . '<li role="presentation">'
                        . '<a onclick="getContent(\'Mailversand\')" href="#">Mailversand</a></li>'
                    . '<li role="presentation">'
                        . '<a onclick="getContent(\'Administration\')" href="#">Administration</a></li>'
                . '</ul>';
            break;
    
    case "Adressen":
        echo    '<ul class="nav nav-pills nav-stacked">'
                    . '<li role="presentation" class="active">'
                        . '<a onclick="getContent(\'Adressen\')" href="#">Adressen</a></li>'
                    . '<li role="presentation">'
                        . '<a onclick="getContent(\'Mailversand\')" href="#">Mailversand</a></li>'
                    . '<li role="presentation">'
                        . '<a onclick="getContent(\'Administration\')" href="#">Administration</a></li>'
                . '</ul>';
        break;
    
    case "Mailversand":
    
        echo    '<ul class="nav nav-pills nav-stacked">'
                    . '<li role="presentation">'
                        . '<a onclick="getContent(\'Adressen\')" href="#">Adressen</a></li>'
                    . '<li role="presentation" class="active">'
                        . '<a onclick="getContent(\'Mailversand\')" href="#">Mailversand</a></li>'
                    . '<li role="presentation">'
                        . '<a onclick="getContent(\'Administration\')" href="#">Administration</a></li>'
                . '</ul>';    
        
        break;
    
    case "Administration":
        
        echo    '<ul class="nav nav-pills nav-stacked">'
                    . '<li role="presentation">'
                        . '<a onclick="getContent(\'Adressen\')" href="#">Adressen</a></li>'
                    . '<li role="presentation">'
                        . '<a onclick="getContent(\'Mailversand\')" href="#">Mailversand</a></li>'
                    . '<li role="presentation" class="active">'
                        . '<a onclick="getContent(\'Administration\')" href="#">Administration</a></li>'
                . '</ul>'; 
    
    default:
        break;
}
    
?>